<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" isELIgnored="false"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Items</title>
</head>
<body>
   <div>
     <table>
       <c:forEach items="${list }" var="b" varStatus="now">
       <c:if test="${(now.index)%3==0 }">
          <tr>       
       </c:if>
           <td>
              <img src="image/${b.fileName }" style="float:top;width:260px;height:260px;">
              <a href="addPurchase?bId=${b.id }">加入购物车</a>
           </td>
        <c:if test="${(now.index)%3==2 }">
          </tr>       
        </c:if>
       
       </c:forEach>
     
     
     </table>
   
   
   
   </div>
</body>
</html>